<template>
  <div class="wrapper">
    <div v-for="(item,index) in placeList" :key="index" class="card-wrapper">
      <div class="card-head">
        <svg-icon icon-class="name" class="head-icon" />
        <span>{{ item.name }}</span>
      </div>
      <div class="card-body">
        <div class="card-body-left">
          <div>
            <svg-icon icon-class="usedNum" />
            <div class="body-label">使用中房间数</div>
            <span>{{ item.usedNum }}</span>
          </div>
          <div>
            <svg-icon icon-class="freeNum" />
            <span class="body-label">空闲房间数</span>
            <span>{{ item.freeNum }}</span>
          </div>
        </div>
        <div class="divider" />
        <div class="card-body-right">
          <div>
            <svg-icon icon-class="isolation" />
            <span class="body-label">隔离数</span>
            <span>{{ item.isolation }}</span>
          </div>
          <div>
            <svg-icon icon-class="quarantine" />
            <span class="body-label">解除隔离数</span>
            <span>{{ item.quarantine }}</span>
          </div>
        </div>
      </div>
    </div>

  </div>
</template>

<script>
export default {
  data() {
    return {
      placeList: [
        {
          name: '威灵顿隔离点',
          usedNum: 102,
          freeNum: 389,
          isolation: 19831,
          quarantine: 18914
        }, {
          name: '威灵顿隔离点',
          usedNum: 102,
          freeNum: 389,
          isolation: 19831,
          quarantine: 18914
        }, {
          name: '威灵顿隔离点',
          usedNum: 102,
          freeNum: 389,
          isolation: 19831,
          quarantine: 18914
        }, {
          name: '威灵顿隔离点',
          usedNum: 102,
          freeNum: 389,
          isolation: 19831,
          quarantine: 18914
        }
      ]
    }
  }
}
</script>

<style lang="scss" scoped>
.wrapper{
  padding: 28px;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  .card-wrapper{
    background: #FFFFFF;
    box-shadow: 0px 6px 12px 2px rgba(39,138,210,0.15);
    border-radius: 16px 16px 16px 16px;
    width: 100%;
    height: 258px;
    &:not(:nth-child(1)){
      margin-top: 28px;
    }
    .card-head{
      width: 100%;
      height: 90px;
      display: flex;
      justify-content: flex-start;
      align-items: center;
      padding: 24px 34px 22px;
      box-sizing: border-box;
      border-bottom: 2px solid #EBEEF5;
      font-size: 32px;
      line-height: 46px;
      font-family: PingFang SC-Bold, PingFang SC;
      font-weight: bold;
      color: #232323;
      .head-icon{
        margin-right: 20px;
        // font-size: 36px !important;
        height: 46px;
        width: 46px;
      }
    }
    .card-body{
      height: 166px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 34px;
      box-sizing: border-box;
      font-size: 28px;
      font-family: PingFang SC-Regular, PingFang SC;
      font-weight: 400;
      .body-label{
        display: inline-block;
        margin-left: 10px;
        margin-right: 8px;
        width: 168px;
        color: #232323;
      }
      .divider{
        margin: 0 32px;
        width: 2px;
        height: 80px;
        background-color: #EBEEF5;
      }
      .card-body-left{
        color: #659FFF;
        div:nth-child(1){
          margin-bottom: 22px;
        }
      }
      .card-body-right{
        color: #EFBE4D;
        div:nth-child(1){
          margin-bottom: 22px;
        }
      }
    }
  }

}
</style>
